package com.woniu.supermarket.service.impl;

import com.woniu.supermarket.entity.WarehousingCheck;
import com.woniu.supermarket.mapper.WarehousingCheckMapper;
import com.woniu.supermarket.service.IWarehousingCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehousingCheckServiceImpl implements IWarehousingCheckService {

    @Autowired
    WarehousingCheckMapper warehousingCheckMapper;


    /**
     * 添加审核采购订单信息
     * @param warehousingCheck 采购订单审核信息对象
     * @return
     */
    @Override
    public int addCheckInfo(WarehousingCheck warehousingCheck) {
        return warehousingCheckMapper.insert(warehousingCheck);
    }

    @Override
    public List<WarehousingCheck> queryOneByWarehousingNumber(String warehousingNumber) {
        return warehousingCheckMapper.selectByWarehousingNumber(warehousingNumber);
    }
}
